package com.designpattern.creatorpattern.factorypattern.abstract_factory;

/**
 * @author Administration
 * @date 2021/10/13 - 11:37 - 星期三
 * @project lambda
 * @package com.designpattern.factorypattern.abstract_factory
 * @by 晨
 */
public class test {
    public static void main(String[] args) {
        ItalyDessertFactory italyDessertFactory = new ItalyDessertFactory();
        Coffee coffee = italyDessertFactory.createCoffee();
        Dessert dessert = italyDessertFactory.createDessert();

        System.out.println(coffee.getName());
        dessert.show();
    }
}
